home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / layout library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  4.0 KB  |  119 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        layout library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutLibraryIncludes
  13. #define layoutLibraryIncludes
  14.  
  15.     #ifndef graphicsRoutinesIncludes
  16. #include "graphics routines.h"
  17. /*    #include "graphics types.h"                                    */
  18. /*        #include "math types.h"                                    */
  19. /*            #include <Types.h>                                    */
  20. /*                #include <ConditionalMacros.h>                    */
  21. /*                #include <MixedMode.h>                            */
  22. /*                    #include <Traps.h>                            */
  23. /*    #include "graphics errors.h"                                */
  24. /*        #include "Types.h"                                        */
  25. /*    #include "font types.h"                                        */
  26. /*    #include "graphics linkage.h"                                */
  27.     #endif
  28.  
  29.     #ifndef layoutTypesIncludes
  30. #include "layout types.h"
  31.     #endif
  32.  
  33.     #ifdef __cplusplus
  34. extern "C" {
  35.     #endif
  36.  
  37. #if defined(powerc) || defined (__powerc)
  38. #pragma options align=mac68k
  39. #endif
  40. struct StyleRunOverrides {
  41.     gxPriorityJustificationOverride *priorityJustOverride;
  42.     gxGlyphJustificationOverride *glyphJustOverrides;
  43.     long                        glyphJustOverridesCount;
  44.     gxGlyphSubstitution            *glyphSubstitutions;
  45.     long                        glyphSubstitutionsCount;
  46.     gxKerningAdjustment            *kerningAdjustments;
  47.     long                        kerningAdjustmentsCount;
  48. };
  49. #if defined(powerc) || defined(__powerc)
  50. #pragma options align=reset
  51. #endif
  52.  
  53. #if defined(powerc) || defined (__powerc)
  54. #pragma options align=mac68k
  55. #endif
  56. struct ParagraphRecord {
  57.     short                        nLayouts;
  58.     Fixed                        totalHeight;
  59.     gxShape                        layouts[1];
  60. };
  61. #if defined(powerc) || defined(__powerc)
  62. #pragma options align=reset
  63. #endif
  64.  
  65. typedef struct ParagraphRecord **ParagraphRecordHandle;
  66.  
  67. #if defined(powerc) || defined (__powerc)
  68. #pragma options align=mac68k
  69. #endif
  70. struct RunFeatureTypeName {
  71.     gxRunFeatureType            featureType;
  72.     unsigned short                nSelectors;
  73.     unsigned short                selectorTableOffset;
  74.     short                        nameIndex;
  75. };
  76. #if defined(powerc) || defined(__powerc)
  77. #pragma options align=reset
  78. #endif
  79.  
  80. #if defined(powerc) || defined (__powerc)
  81. #pragma options align=mac68k
  82. #endif
  83. struct RunFeatureSelectorName {
  84.     gxRunFeatureSelector        featureSelector;
  85.     short                        nameIndex;
  86. };
  87. #if defined(powerc) || defined(__powerc)
  88. #pragma options align=reset
  89. #endif
  90.  
  91.     #ifndef __cplusplus
  92. typedef struct StyleRunOverrides StyleRunOverrides;
  93.  
  94. typedef struct ParagraphRecord ParagraphRecord;
  95.  
  96. typedef struct RunFeatureTypeName RunFeatureTypeName;
  97.  
  98. typedef struct RunFeatureSelectorName RunFeatureSelectorName;
  99.  
  100.     #endif
  101.  
  102. extern void InitializeRunControls(gxRunControls *runControls);
  103. extern void InitializeLayoutOptions(gxLayoutOptions *layoutOptions);
  104. extern void InitializeStyleRunOverrides(StyleRunOverrides *overrides);
  105. extern void SetDefaultPriorityJustOverride(gxPriorityJustificationOverride *override);
  106. extern void SetLayoutStyle(gxStyle s, char *gxFontName, Fixed textSize, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  107. extern gxStyle NewLayoutStyle(char *gxFontName, Fixed textSize, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  108. extern gxShape NewSingleLayout(char *text, char *gxFontName, Fixed textSize, gxLayoutOptions *options, gxPoint *position, gxTextAttribute attr, gxRunControls *runControls, gxRunFeature runFeatures[], long runFeaturesCount, StyleRunOverrides *overrides);
  109. extern ParagraphRecordHandle NewParagraph(char *text, gxStyle baseStyle, Fixed width, long justified, Fixed lineHeight, gxPoint *firstOrigin);
  110. extern ParagraphRecordHandle NewStyledParagraph(long textRunCount, const void *text[], const short textRunLengths[], long styleRunCount, const gxStyle styles[], const short styleRunLengths[], long levelRunCount, const short levels[], const short levelRunLengths[], long totalByteCount, const gxLayoutOptions *layoutOptions, Fixed lineHeight, const gxPoint *firstOrigin);
  111. extern void DisposeParagraph(ParagraphRecordHandle paraRec);
  112. extern gxShape GetLayoutBounds(gxShape layout);
  113.     #ifdef __cplusplus
  114. }
  115.     #endif
  116.  
  117. #endif
  118.  
  119.